package cn.tedu.hospitalqd.pojo.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.Date;

@Data
public class PatientUpdateDTO implements Serializable {
    @ApiModelProperty(value = "患者创建时间", required = true)
    @NotNull(message = "必须提交患者创建时间")
    private Date pAddtime;

    @ApiModelProperty(value = "患者账号", required = true)
    @NotNull(message = "必须提交患者账号")
    private String pAccount;

    @ApiModelProperty(value = "患者密码", required = true)
    @NotNull(message = "必须提交患者密码")
    private String pPassword;

    @ApiModelProperty(value = "患者姓名", required = true)
    @NotNull(message = "必须提交患者姓名")
    private String pName;

    @ApiModelProperty(value = "患者年龄", required = true)
    @NotNull(message = "必须提交患者年龄")
    private Integer pAge;

    @ApiModelProperty(value = "患者性别", required = true)
    @NotNull(message = "必须提交患者性别")
    private String pGender;

    @ApiModelProperty(value = "患者手机", required = true)
    @NotNull(message = "必须提交患者手机")
    private String pPhone;

    @ApiModelProperty(value = "患者身份证", required = true)
    @NotNull(message = "必须提交患者身份证")
    private String pIdnumber;

    @ApiModelProperty(value = "患者居住地", required = true)
    @NotNull(message = "必须提交患者居住地")
    private String pPlace;

    @ApiModelProperty(value = "患者出生日期", required = true)
    @NotNull(message = "必须提交患者出生日期")
    private String pBirth;

    @ApiModelProperty(value = "患者家庭住址", required = true)
    @NotNull(message = "必须提交患者家庭住址")
    private String pHome;

    @ApiModelProperty(value = "患者照片", required = true)
    @NotNull(message = "必须提交患者照片")
    private String pImg;

}
